<template>
  <div class="calc-container">
    <h1>ROI计算器</h1>
    <p>ROI计算器用于计算千川投放ROI指标，通过设置期望值测算出相应ROI指标，指导千川投放目标及策略</p>
    <div class="calc-box">
      <div class="calc">
        <el-form ref="form" :model="form" label-width="80px">
          <el-form-item label="活动名称" v-for="x in 9" :key="x" >
            <el-input v-model="form.name"></el-input>
          </el-form-item>
          
          <el-form-item>
            <el-button type="primary" @click="onSubmit">立即创建</el-button>
            <el-button>取消</el-button>
          </el-form-item>
        </el-form>
      </div>
      <div class="result">2</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
      return {
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        }
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      }
    }
}
</script>

<style lang="less">
  .calc-container{
    width: 100%;
    background-color: #f8f8f8;
    padding: 30px 20px;
    h1{
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 15px;
    }
    &>p{
      font-size: 14px;
      margin-bottom: 35px;
      color: #666;
    }
    .calc-box{
      width: 80%;
      display: flex;
      justify-content: center;
      .calc{
        width: 50%;
      }
      .result{
        width: 50%;
      }
    }
  }

</style>